PowerTCP FTP for .NET
Combine(String[]) Method



An array of parts of the path.
Combines an array of strings into a Unix path.
Syntax
Public Overloads Shared Function Combine( _
   ByVal ParamArray unixPaths() As String _
) As String
Dim unixPaths() As String
Dim value As String
 
value = UnixPath.Combine(unixPaths)
public static string Combine( 
   params string[] unixPaths
)
public:
static String^ Combine( 
   ... array<String^>^ unixPaths
) 

Parameters

unixPaths
An array of parts of the path.

Return Value

The combined paths.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionunixPaths or one of the string in the array is null.
System.ArgumentExceptionOne of the strings in the array contains a Unix filesystem-illegal character, NUL.
Remarks

unixPaths should be an array of the parts of the path to combine. If the one of the subsequent paths is an absolute path, then the combine operation resets starting with that absolute path, discarding all previous combined paths.

Zero-length strings are omitted from the combined path.

White space is not parsed. Therefore, if a path starts with white space (for example, " /file.txt "), the Combine method appends it to the prior paths instead of returning only that path.

See Also

Reference

UnixPath Class
UnixPath Members
Overload List


PowerTCP FTP for .NET Documentation Version 6.1
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic